package com.yu.crm.constants;

/**
 * @author pan
 * @since 2020/9/25 13:45
 */
public class WxConstant {

    public static  String ACCESS_TOKEN = "";
    /**
     * 公众号配置信息
     */
    public class WxConfigConstant {
        public static final String APP_ID = "wx13cc76c9eef84f67";
        public static final String APP_SECRET = "3219096be34b784c4bab798e2a4fef8a";
        public static final String TOKEN = "wx111";
    }

    /**
     * 公众号请求路径
     */
    public class WxRequestUrl {
        //获取access_token
        public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
        //生成ticket
        public final static String QR_CREATE_URL = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=TOKEN";
        //生成二维码
        public final static String  CREATE_QR_CODE_URL = "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=TICKET";
        //获取用户基本信息\
        public final static String  GET_USER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    }

    /**
     * 事件类型
     */
    public class Event {
        //关注（订阅）
        public static final String SUBSCRIBE = "subscribe";
        //扫描二维码
        public static final String SCAN = "SCAN";
    }

}
